package com.lhnstart.learn.bases.scope;

/**
 * 作用域
 *
 * @author lhn
 * @date 2022/11/15 22:46
 * @since 1.0.0
 **/
public class Scope01 {

    final int id = 0;
    int num1;

    public static void main(String[] args) {
        int i;
        ScopeDemo01 scopeDemo01 = new ScopeDemo01();
        i = 0;
        System.out.println(i);

    }

}

class ScopeDemo01{
    public void test() {
        int i;
        ScopeDemo01 scopeDemo01 = new ScopeDemo01();
        i = 0;
    }
}